#region Using
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
#endregion Using

namespace CY.GFive.Core.Business
{
	public class TraineeScore : Business.BusinessBase<TraineeScore, int>
	{
		#region Fields and Properties

		private Decimal score = 0.0m;
		/// <summary>
		/// 
		/// </summary>
		public Decimal Score
		{
			get { return score; }
			set
			{
				if (value != score)
				{
					MarkChanged("Score");
					score = value;
				}
			}
		}

		private String scoreCate = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String ScoreCate
		{
			get { return scoreCate; }
			set
			{
				if (value != scoreCate)
				{
					MarkChanged("ScoreCate");
					scoreCate = value;
				}
			}
		}

		private String projectCode = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String ProjectCode
		{
			get { return projectCode; }
			set
			{
				if (value != projectCode)
				{
					MarkChanged("ProjectCode");
					projectCode = value;
				}
			}
		}

		private String stdCode = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String StdCode
		{
			get { return stdCode; }
			set
			{
				if (value != stdCode)
				{
					MarkChanged("StdCode");
					stdCode = value;
				}
			}
		}

		#endregion Fields and Properties

		#region Constructors

		public TraineeScore()
		{
		}

		#endregion Constructors

		#region Base overrides

		protected override void ValidationRules()
		{
		}

		protected override TraineeScore DataSelect(int id)
		{
			return Services.DALService.TraineeScoreService.Select(id);
		}

		protected override void DataUpdate()
		{
			Services.DALService.TraineeScoreService.Update(this);
		}

		protected override void DataInsert()
		{
			Services.DALService.TraineeScoreService.Insert(this);
		}

		protected override void DataDelete()
		{
			Services.DALService.TraineeScoreService.Delete(this);
		}

		#endregion Base overrides
	}
}
